﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FrameworkManapro.BusinessModel;

namespace GMAC.ReportingSystem.Business.Entities
{
    [DbProcedures(Insert = "procFieldRepInsert", Update = "procFieldRepUpdate", Delete = "procFieldRepDelete")]
    public class FieldRep : BusinessEntity
    {
        /// <summary>
        /// Gets or sets the ID.
        /// </summary>
        /// <value>The ID.</value>
        [EntityPrimaryKey]
        [DbParameter(1, 1, 1)]
        public int ID { get; set; }

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        [DbParameter(2, 2, 0)]
        public string Name { get; set; }
        
        /// <summary>
        /// Gets or sets the type.
        /// </summary>
        /// <value>The type.</value>
        [DbParameter(3, 3, 0)]
        public GeneralEnumTypes.TypeFieldRep Type { get; set; }

        ///<sumary>
        /// Gets or sets the Status
        /// </sumary>
        /// <value>The Status </value>
        [DbParameter(4, 4, 0)]
        public bool Status { get; set; }

        

    }
    public class FieldRepCollection : List<FieldRep>
    {
        public int TotalResults { get; set; }
    }
}
